{% extends 'base.html' %}
{% load news_extras %}
{% block title %}{{ channel.name }} - 畜牧大集网{% endblock %}

{% block content %}
	<div class="content c-2">
        <div class="c-l">
    {% for subchannel in allarticles %}
            <ul class="txt-title">
                <li class="now now-min"><span class="now-z">{{ subchannel.channel.name }}</span></li>
                <li class="more">
                {% for aditem in ads.title_ad %}
                <a href="{{ aditem.ad_link }}" target="_blank"><img src="{{ aditem.ad_file.url }}" width="80" height="28" alt="{{ aditem.ad_text }}"></a>
                {% endfor %}
                <!--<a href="###"><img src="images/index_71.gif" alt="" /></a>--></li>
            </ul>
            <div class="txt-box">
                <div class="txt-top">
                    <div class="flot-l"><a href="/news/view/{{ subchannel.headline.id }}.html"><img src="{{ subchannel.headline.headline_image.url }}" width="147" height="107" alt="{{ subchannel.headline.title }}" /></a></div>
                    <div class="flot-r">
                        <h4><a href="/news/view/{{ subchannel.headline.id }}.html">{{ subchannel.headline.title }}</a></h4>
                        <p>{{ subchannel.headline.summary|truncatehanzi:"98" }}</p>
                        <div class="more-box"><a href="/news/view/{{ subchannel.headline.id }}.html" class="more">详细</a></div>
                    </div>
                </div>
                <ul class="txt">
                {% for item in subchannel.items %}
                    <li><b><a href="/news/view/{{ item.id }}.html" title="{{ item.title }}">{{ item.title|truncatehanzi:"18" }}</a></b><span>{{ item.updated|date:'SHORT_DATE_FORMAT' }}</span></li>
                {% endfor %}
                </ul>
                <div class="more-box"><a href="/channel/{{ subchannel.channel.id }}/" style="display:block;margin:3px 25px 0 0;">更 多</a></div>
            </div> 
            <div class="box-b"><span></span></div>
            <br />
    {% endfor %}
        </div>
        <div class="c-r txt-list">
            {% include 'news/search-box.html' %}
            {% include 'news/trends.html' %}
        </div>
        <div class="c-r txt-list">
            {% include 'news/observation.html' %}
        </div>
        <div class="c-r">
        <ul class="ad_r">
        {% for aditem in ads.sidebar_ad %}
            <li><a href="{{ aditem.ad_link }}" target="_blank"><img src="{{ aditem.ad_file.url }}" width="235" height="93" alt="{{ aditem.ad_text }}" /></a></li>
        {% endfor %}
        </ul>
        <!--
        	<ul class="ad_r">
            	<li><a href="###"><img src="{{ STATIC_URL }}images/index_65.gif" alt="" /></a></li>
            	<li><a href="###"><img src="{{ STATIC_URL }}images/index_81.gif" alt="" /></a></li>
            	<li><a href="###"><img src="{{ STATIC_URL }}images/index_74.gif" alt="" /></a></li>
            </ul>
        -->
        </div>
    </div>
    {% for aditem in ads.medium_ad %}
    <div class="ad-max"><a href="{{ aditem.ad_link }}" target="_blank"><img src="{{ aditem.ad_file.url }}" width="960" height="97" alt="{{ aditem.ad_text }}" /></a></div>
    {% endfor %}
{% endblock %}
